import { useBase, title, legend, grid, pieStyle, colorStyle } from '../template/index'

const legendCopy = {...legend}

legendCopy.configs[0].defaultValue = false;

export default<widgetConfig> {
  widget: 'pieCharts',
  name: '饼状图',
  icon: '#icon-bingtu',
  baseInfo: [
    useBase('饼状图'),
    title,
    legendCopy,
    grid,
    pieStyle,
    colorStyle,
  ]
}